package com.buba.customer.service.impl;

import com.buba.customer.dao.CustomerInfMapper;
import com.buba.customer.pojo.CustomerInf;
import com.buba.customer.service.CustomerInfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 用户详细业务层实现
 */
@Service
public class CustomerInfServiceImpl implements CustomerInfService {

    private CustomerInfMapper customerInfMapper;

    @Override
    public Integer addCustomerInf(CustomerInf customerInf) {
        return customerInfMapper.addCustomerInf(customerInf);
    }

    @Override
    public Integer selCustomerInfByName(CustomerInf customerInf) {
        return customerInfMapper.selCustomerInfByName(customerInf);
    }



    @Override
    public List<CustomerInf> selCustomerInf(Map<String, Object> map) {
        return customerInfMapper.selCustomerInf(map);
    }

    @Override
    public Long selCount(Map<String, Object> map) {
        return customerInfMapper.selCount(map);
    }

    @Override
    public Integer delCustomerInf(String[] split) {
        return customerInfMapper.delCustomerInf(split);
    }

    public CustomerInfMapper getCustomerInfMapper() {
        return customerInfMapper;
    }

    @Autowired
    public void setCustomerInfMapper(CustomerInfMapper customerInfMapper) {
        this.customerInfMapper = customerInfMapper;
    }


}
